package com.xiaomimall.back.Comm;

import com.xiaomi.back.dao.commoditys.CommodityDao;
import com.xiaomi.back.dao.describes.DescribesBackDao;
import com.xiaomi.back.service.commoditys.CommoditysService;
import com.xiaomi.pojo.Commoditys;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class comm {
    private ApplicationContext context ;

    @Before
    public void init() {
        context = new ClassPathXmlApplicationContext("spring-config-all.xml") ;
    }
    @Test
    public void getBusinessDao() {
        int commoditys =context.getBean(DescribesBackDao.class).getAddcart();
        System.out.println(commoditys);
    }
}
